package com.woniu.dao;

import com.woniu.pojo.CollectService;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface CollectServiceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CollectService record);

    int insertSelective(CollectService record);

    CollectService selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CollectService record);

    int updateByPrimaryKey(CollectService record);

    @Delete("delete from collect_service where serviceid=#{serviceid} and userid=#{userid}")
    void deleteByuserIdAndServiceId(Integer serviceid,Integer userid);

    @Select("select serviceid from collect_service where userid=#{value}")
    Integer selectServiceIdByUserId(Integer userid);
}